import request from "@/utils/request"

export const queryInventoryApi = (pageNum = 1, pageSize = 20, dto) => {
  return request.post(`/warehousing/query?pageNum=${pageNum}&pageSize=${pageSize}`, dto)
}
export const noQueryApi = (pageNum = 1, pageSize = 20) => {
  return request.get(`/warehousing/noquery?pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const getWarehouseApi = () => {
  return request.get(`/warehousing/warehouse`)
}
export const getwWrehouseAreaApi = () => {
  return request.get(`/warehousing/warehouseArea`)
}
export const getWarehouseAreaLocalApi = () => {
  return request.get(`/warehousing/warehouseAreaLocal`)
}
export const getAllWarehouseInfoApi = (locaCode, pageNum = 1, pageSize = 20) => {
  return request.get(`/warehousing/all?locaCode=${locaCode}&pageNum=${pageNum}&pageSize=${pageSize}`)
}